

<div class="loading-div">
<img src="resources/img/loading2.gif"/>
</div>
var loadingTime=500;

function hideLoading(){

$(".loading-div").fadeTo(loadingTime,0,function(){
$(this).hide();

});

}

function showLoading(){
$(".loading-div").show().fadeTo(loadingTime,1);
}

$(window).load(function () {
hideLoading();
});


